package cn.dbwork.yacht.service.impl;

import java.util.Date;
import java.util.List;

import cn.dbwork.yacht.dao.IComsumeDao;
import cn.dbwork.yacht.dao.impl.ComsumeDao;
import cn.dbwork.yacht.domain.Comsume;
import cn.dbwork.yacht.service.IComsumeService;

public class ComsumeService implements IComsumeService {

	private IComsumeDao comsumeDao = new ComsumeDao();
	
	@Override
	public Comsume findById(int id) {
		return comsumeDao.findById(id);
	}

	@Override
	public List<Comsume> findAll() {
		return comsumeDao.findAll();
	}

	@Override
	public Comsume findByYid(int id) {
		return comsumeDao.findByYid(id);
	}

	@Override
	public Comsume findByDate(Date date) {
		return comsumeDao.findByDate(date);
	}

	@Override
	public Comsume findByName(String name) {
		return comsumeDao.findByName(name);
	}

	@Override
	public void save(Comsume comsume) {
		comsumeDao.save(comsume);
	}

	@Override
	public void update(Comsume comsume) {
		comsumeDao.update(comsume);
	}

}
